package chapter3.No3_2_方法join的使用.demo1;

/**
 * Created by Administrator on 2016/11/20.
 */
public class MyThread extends Thread {
    @Override
    public void run() {
        try {
            int value = (int)(Math.random()*10000);
            System.out.println(value);
            Thread.sleep(value);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
